<template>
	<view class="padding-30">
		<view class="padding-30 bg-fff border-radius20 margin-bottom30">
			<view class="flex-between f-divider1 margin-bottom30">
				<view class="">
					<view class="fontSize-15 color-000 margin-bottom20">{{doctor_info.nickname}}</view>
					<view class="fontSize-13 color-999">所在科室：{{doctor_info.keshi}}</view>
				</view>
				<image class="img-160 border-50radius margin-bottom30" :src="doctor_info.avatar" mode=""></image>
			</view>
			<view class="fontSize-15 color-000"><text class="fontSize-15 color-0165FD">擅长：</text>{{doctor_info.bio}}</view>
		</view>
		<view class="padding-30 bg-fff border-radius20">
			<view class="fontSize-18 fontWeight-bold color-000 margin-bottom30">医生简历</view>
			<view class="fontSize-15 color-000">
				{{doctor_info.about}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				doctor_info:{} // 医生详情
			}
		},
		onLoad(e) {
			if(e.id){
				this.getDoctorInfo(e.id)
			}
		},
		methods:{
			async getDoctorInfo(id){
				let res = await this.$http.post(this.$api.sick_detail,{id:id},{token:true})
				if(res.code ==1){
					this.doctor_info = res.data.doctor
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>